<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddAccountsToUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->integer('xhs_num')->default(0)->comment('小红书账号数');
            $table->integer('dy_num')->default(0)->comment('抖音账号数');
            $table->integer('sph_num')->default(0)->comment('视频号账号数');
            $table->integer('ks_num')->default(0)->comment('快手账号数');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('users', function (Blueprint $table) {
            $table->dropColumn(['xhs_num','dy_num','sph_num','ks_num']);
        });
    }
}
